﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using System.Runtime.Serialization;

namespace EntityLibrary
{
    [System.ComponentModel.DesignerCategory("Code")]
    [SerializableAttribute]
    public class MIItemRelationZLData : DataSet
    {


        public const string I_ITEMRELATIONZL_ITEMIDHIS = "ITEMIDHIS";
        public const string I_ITEMRELATIONZL_ITEMIDMED = "ITEMIDMED";
        public const string I_ITEMRELATIONZL_OPID = "OPID";
        public const string I_ITEMRELATIONZL_IMPORTDT = "IMPORTDT";
        public const string I_ITEMRELATIONZL_TRANDT = "TRANDT";
        public const string I_ITEMRELATIONZL_PRE1 = "PRE1";
        public const string I_ITEMRELATIONZL_PRE2 = "PRE2";
        public const string I_ITEMRELATIONZL_PRE3 = "PRE3";



        private DataTable table;
        private DataColumn col;
        private ArrayList list;



        private MIItemRelationZLData(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public MIItemRelationZLData()
        {

            BuildDataTables();
        }

        //构建业务实体类的结构。
        private void BuildDataTables()
        {

            table = new DataTable("I_ITEMRELATIONZL");

            table.Columns.Add("ITEMIDHIS", typeof(System.String));
            table.Columns.Add("ITEMIDMED", typeof(System.String));
            table.Columns.Add("OPID", typeof(System.String));
            table.Columns.Add("IMPORTDT", typeof(System.DateTime));
            table.Columns.Add("TRANDT", typeof(System.DateTime));
            table.Columns.Add("PRE1", typeof(System.String));
            table.Columns.Add("PRE2", typeof(System.String));
            table.Columns.Add("PRE3", typeof(System.String));
            list = new ArrayList();

            col = table.Columns["ITEMIDHIS"];
            list.Add(col);


            table.PrimaryKey = (DataColumn[])list.ToArray(typeof(DataColumn));
            this.Tables.Add(table);



        }



    }
}
